package com.wjy.common.application;

import com.wjy.common.mq.pc.JedisPusPopListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author ybxxszl
 * @desc 项目启动后自动执行
 * @date 2019/5/4
 */
@Component
public class ApplicationRunnerHandler implements ApplicationRunner {

    @Autowired
    private JedisPusPopListener jedisPusPopListener;

    @Override
    public void run(ApplicationArguments applicationArguments) {
        jedisPusPopListener.onMessage("MAIL_VerifyCode", "SMS_VerifyCode");
    }

}
